package com.yuju.exception;

/**
 * 类名：BusinessException  <br />
 *
 * 功能：业务异常
 *
 * @author : xuehj <br />
 * @Date : 2017年9月12日 下午5:50:34  <br />
 * @version : 1.1 <br />
 */
public class BusinessException extends RuntimeException {
	private static final long serialVersionUID = 1L;
	
	// 业务操作结果代码
	private String returnCode;
	// 业务操作结果描述
	private String returnMsg;
	
	public BusinessException() {
		super();
	}
	
	public BusinessException(String message) {
		super(message);
	}
	
	public BusinessException(String returnCode, String message) {
		super(message);
		this.returnCode = returnCode;
		this.returnMsg = message;
	}
	
	public BusinessException(String message, Throwable cuse) {
		super(message, cuse);
	}
	
	public BusinessException(Throwable cuse) {
		super(cuse);
	}

	public String getReturnCode() {
		return returnCode;
	}

	public void setReturnCode(String returnCode) {
		this.returnCode = returnCode;
	}

	public String getReturnMsg() {
		return returnMsg;
	}

	public void setReturnMsg(String returnMsg) {
		this.returnMsg = returnMsg;
	}

}
